PDF4Java Reference Documentation
com.o2sol.pdf4java.core.cos Package / PDFCosArray Class / getAsCosDictionary Method
Index of element to return.
default value to return if the element at the specified index is not a COS dictionary
In This Topic
    getAsCosDictionary Method
    In This Topic
    Gets the element at the specified index as a COS dictionary.
    Syntax
    public PDFCosDictionary getAsCosDictionary( 
       int index,
       PDFCosDictionary defaultValue
    )

    Parameters

    index
    Index of element to return.
    defaultValue
    default value to return if the element at the specified index is not a COS dictionary

    Return Value

    The element at the specified index.
    Exceptions
    ExceptionDescription
    Thrown when the index value is invalid
    See Also